#import "KKEncryptString.h"
const char *kk_CString(const KKEncryptStringData *data)
{
    if (data->decoded == 1) return data->value;
    for (int i = 0; i < data->length; i++) {
        data->value[i] ^= data->factor;
    }
    ((KKEncryptStringData *)data)->decoded = 1;
    return data->value;
}

NSString *kk_OCString(const KKEncryptStringData *data)
{
    return [NSString stringWithUTF8String:kk_CString(data)];
}
